#include<jni.h>
#include <stdio.h>
#include "com_learn_jni_JniDemo.h"

JNIEXPORT void JNICALL Java_com_learn_jni_JniDemo_sayHello(JNIEnv *env, jobject thisObj) {
       printf("Hello World!\n");
       return;
 }

//gcc -c -I '/usr/lib/jvm/java-8-oracle/include' -I '/usr/lib/jvm/java-8-oracle/include/linux' JniDemo.c

//g++ -I '/usr/lib/jvm/java-8-oracle/include' -I '/usr/lib/jvm/java-8-oracle/include/linux' JniDemo.c -fPIC -shared -o libJniDemo.so
